package com.buybuyyi.stylistcrm.security.mapper;

import com.buybuyyi.stylistcrm.security.po.SecurityNavigation;
import com.buybuyyi.stylistcrm.security.po.SecurityOperationPermission;
import com.buybuyyi.stylistcrm.security.po.SecurityUser;
import com.buybuyyi.stylistcrm.security.po.SecurityViewPermission;

import java.util.List;

public interface SecurityUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SecurityUser record);

    int insertSelective(SecurityUser record);

    SecurityUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SecurityUser record);

    int updateByPrimaryKey(SecurityUser record);

    SecurityUser selectByUserName(String userName);

    List<SecurityNavigation> selectNavigationByUserName(String userName);

    List<SecurityOperationPermission> selectOperationPermissionByUserName(String userName);

    List<SecurityViewPermission> selectViewPermissionByUserName(String userName);

}